package com.jk1.bianligou.blg.service;

import com.jk1.bianligou.blg.domain.dto.cart.AmountChange;
import com.jk1.bianligou.blg.domain.po.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jk1.bianligou.blg.domain.vo.CartVO;

import java.util.List;

/**
* @author WHH
* @description 针对表【cart(购物车表)】的数据库操作Service
* @createDate 2025-04-11 21:57:01
*/
public interface CartService extends IService<Cart> {

    List<CartVO> getCartById(Long loginUserId);

    Boolean decreaseCart(AmountChange amountChange, Long loginUserId);

    Boolean increaseCart(AmountChange amountChange, Long loginUserId);

    void clearCart(Long userId);
}
